package net.ankao.org.easylock.core;

/**
 * <p>
 * EasyLockLambdaCallback
 * </p>
 *
 * @author ankao.net
 * @since 2022/3/29
 */
public interface EasyLockLambdaCallback<T> {


    /**
     * 调用者必须在此方法中实现需要加分布式锁的业务逻辑
     * @return 执行结果
     * @throws Throwable 异常
     */

    T process() throws Throwable;

}
